/*
 * @Descripttion: 
 * @version: 
 * @Author: wangzhilei
 * @Date: 2021-09-24 11:10:36
 * @LastEditors: wangzhilei
 * @LastEditTime: 2021-09-25 00:42:55
 */
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

int main(void)
{
    fd_set set;
    // long int l=(long int)1<<(127%64);
    FD_ZERO(&set);
    FD_SET(10,&set);
    FD_SET(65,&set);
    int i;
    for(i = 0;i < sizeof(set);i++)
    {
        printf("set.__fds_bits[%d]:%ld\t",i,set.__fds_bits[i]);
    }
    printf("\n/\n");
    FD_SET(1,&set);
    for(i = 0;i < sizeof(set);i++)
    {
        printf("set.__fds_bits[%d]:%ld\t",i,set.__fds_bits[i]);
    }
    
    printf("\n/\n");
    FD_ZERO(&set);
    FD_SET(16,&set);
    for(i = 0;i < sizeof(set);i++)
    {
        printf("set.__fds_bits[%d]:%ld\t",i,set.__fds_bits[i]);
    }
	return 0;
}

